<{include file="../templates/admin/header.html"}>

<div class="main-div">
  <form action="goods_type.php<{if $action neq ''}>?act=<{$action}><{/if}>" method="post" name="theForm">
    <table cellspacing="1" cellpadding="3" width="100%">
    <{if $judge eq "add"}>
      <tr>
        <td class="label">商品类型名称:</td>
        <td><input type="text" name="cat_name" size="40" />
        </td>
      </tr>
      <tr align="center">
        <td colspan="2">
          <input type="submit" value="确定" class="button" />
          <input type="reset" value="重置" class="button" />
        </td>
      </tr>
    <{/if}>
    <{if $judge eq "edit"}>
      <tr>
        <td class="label">商品类型名称:</td>
        <td><input type="text" name="cat_name" size="40" value="<{$row.cat_name}>"/>
        </td>
      </tr>
      <tr>
        <td class="label">是否显示:</td>
        <td>
          <input type="radio" name="is_show" value="1" <{if $row.enabled eq 1}> checked="true"<{/if}>/>是
          <input type="radio" name="is_show" value="0" <{if $row.enabled eq 0}> checked="true"<{/if}> />否
        </td>
      </tr>
      <tr align="center">
        <td colspan="2">
          <input type="submit" value="确定" class="button" />
          <input type="reset" value="重置" class="button" />
        </td>
      </tr>
   	  <input type="hidden" name="cat_id" value="<{$row.cat_id}>" />
    <{/if}>
    </table>
  </form>
</div>

